<?php

namespace App\Repository\Models;

use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
use Zizaco\Entrust\EntrustPermission;

/**
 * Class Permission.
 *
 * @package namespace App\Repository\Models;
 */
class Permission extends EntrustPermission  implements Transformable
{
    use TransformableTrait;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */

    protected $fillable = ['id','name','display_name','description','type'];
    

    protected $appends = ['permission_id'];

    public function getPermissionIdAttribute(){
       return $this->id; 
    }
}
